package com.stylefeng.guns.modular.system.service;

import java.io.InputStream;

/**
 * @author lmshe
 * @create 9:54 2017/11/23
 * @desc
 */
public interface IDocumentsService {

    /**
     * @author lmshe
     * @create 9:59 2017/11/23
     * @desc doc文档转成html
     */
    void docToHtml(InputStream inputStream,Long documentsId);
    /**
     * @author lmshe
     * @create 9:59 2017/11/23
     * @desc docx文档转成html
     */
    void docxToHtml(InputStream inputStream,Long documentsId);
    /**
     * @author lmshe
     * @create 9:59 2017/11/23
     * @desc xls表格转成html(支持xlsx)
     */
    void xlsToHtml(InputStream inputStream,Long documentsId);
    /**
     * @author lmshe
     * @create 9:59 2017/11/23
     * @desc xlsx表格转成html
     */
    void xlsxToHtml(InputStream inputStream,Long documentsId);
    /**
     * @author lmshe
     * @create 9:59 2017/11/23
     * @desc ppt转成html
     */
    void pptToHtml(InputStream inputStream,Long documentsId);
    /**
     * @author lmshe
     * @create 10:00 2017/11/23
     * @desc pptx转成html
     */
    void pptxToHtml(InputStream inputStream,Long documentsId);
    /**
     * @author lmshe
     * @create 10:00 2017/11/23
     * @desc pdf转成html
     */
    void pdfToHtml(String fileName,Long documentsId);
    /**
     * @author lmshe
     * @create 16:31 2017/11/23
     * @desc 获取doc文档的预览html
     */
    String getDocHtml(Long documentsId);
    /**
     * @author lmshe
     * @create 16:44 2017/11/23
     * @desc 获取pdf文档的预览html
     */
    String getPdfHtml(Long documentsId);
    /**
     * @author lmshe
     * @create 16:44 2017/11/23
     * @desc 获取eXCEL文档的预览html
     */
    String getExcelHtml(Long documentsId);
    /**
     * @author lmshe
     * @create 16:44 2017/11/23
     * @desc 获取eXCEL文档的预览html
     */
    String getPPTHtml(Long documentsId);
}
